import React, { useRef, useState } from 'react';
import { Button, Modal, ModalProps } from 'antd';
import classnames from 'classnames';


interface ModalPropsWithMore extends ModalProps {
  /**
   * 超出后是否在整屏滚动：默认false,在弹窗body中滚动
   */
  screenScroll?: boolean;
}
const App: React.FC<ModalPropsWithMore> = ({
  children,
  className,
  screenScroll,
  ...resetProps
}) => {
  return (
    <>
      <Modal
        className={classnames(className, 'modalBox', {
          'ant-modal-body-height': !screenScroll,
        })}
        {...resetProps}
      >
        {children}
      </Modal>
    </>
  );
};

export default App;
